/*
 * 入库单明细Repository接口
 */
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using VOL.Core.BaseProvider;
using VOL.Entity.DomainModels;

namespace VOL.demo.IRepositories
{
    public partial interface IStockInOrderItemModelRepository : IRepository<StockInOrderItemModel>
    {
        /// <summary>
        /// 批量添加入库明细
        /// </summary>
        /// <param name="items">入库明细列表</param>
        /// <returns>是否成功</returns>
        Task<bool> AddItemsAsync(List<StockInOrderItemModel> items);

        /// <summary>
        /// 根据入库单号获取明细
        /// </summary>
        /// <param name="stockInCode">入库单号</param>
        /// <returns>明细列表</returns>
        Task<List<StockInOrderItemModel>> GetItemsByStockInCodeAsync(string stockInCode);
    }
}





